<?php

class Backend_DepartmentController extends Backend_Libraries_Controller_Action {

    public function indexAction() {
        $departments = $this->_em->getRepository('Entities\Department')->findAll();
        
        $this->view->departments = $departments;
    }

}